package com.gw.booking.entity;

import javax.persistence.*;
import java.sql.Timestamp;
import java.util.Date;

@Entity
@Table(name = "discount")
public class Discount {
    private int id;
    private Integer merchantId;
    private Integer state;
    private String limited;
    private Date limitedAt;
    private String contentC;
    private String contentJ;
    private Timestamp createdAt;
    private Timestamp updatedAt;
    private Integer reserve;
    private Integer prompt;
    private String conditionC;
    private String conditionJ;

    @Id
    @GeneratedValue(strategy = GenerationType.IDENTITY)
    @Column(name = "id")
    public int getId() {
        return id;
    }

    public void setId(int id) {
        this.id = id;
    }

    @Basic
    @Column(name = "merchant_id")
    public Integer getMerchantId() {
        return merchantId;
    }

    public void setMerchantId(Integer merchantId) {
        this.merchantId = merchantId;
    }

    @Basic
    @Column(name = "state")
    public Integer getState() {
        return state;
    }

    public void setState(Integer state) {
        this.state = state;
    }

    @Basic
    @Column(name = "limited")
    public String getLimited() {
        return limited;
    }

    public void setLimited(String limited) {
        this.limited = limited;
    }

    @Basic
    @Column(name = "limited_at")
    public Date getLimitedAt() {
        return limitedAt;
    }

    public void setLimitedAt(Date limitedAt) {
        this.limitedAt = limitedAt;
    }

    @Basic
    @Column(name = "content_c")
    public String getContentC() {
        return contentC;
    }

    public void setContentC(String contentC) {
        this.contentC = contentC;
    }

    @Basic
    @Column(name = "content_j")
    public String getContentJ() {
        return contentJ;
    }

    public void setContentJ(String contentJ) {
        this.contentJ = contentJ;
    }


    @Basic
    @Column(name = "created_at")
    public Timestamp getCreatedAt() {
        return createdAt;
    }

    public void setCreatedAt(Timestamp createdAt) {
        this.createdAt = createdAt;
    }

    @Basic
    @Column(name = "updated_at")
    public Timestamp getUpdatedAt() {
        return updatedAt;
    }

    public void setUpdatedAt(Timestamp updatedAt) {
        this.updatedAt = updatedAt;
    }

    @Basic
    @Column(name = "reserve")
    public Integer getReserve() {
        return reserve;
    }

    public void setReserve(Integer reserve) {
        this.reserve = reserve;
    }

    @Basic
    @Column(name = "prompt")
    public Integer getPrompt() {
        return prompt;
    }

    public void setPrompt(Integer prompt) {
        this.prompt = prompt;
    }

    @Basic
    @Column(name = "condition_c")
    public String getConditionC() {
        return conditionC;
    }

    public void setConditionC(String conditionC) {
        this.conditionC = conditionC;
    }

    @Basic
    @Column(name = "condition_j")
    public String getConditionJ() {
        return conditionJ;
    }

    public void setConditionJ(String conditionJ) {
        this.conditionJ = conditionJ;
    }

}
